// src/main/java/com/example/player/command/StopCommand.java
package com.example.command;


import com.example.core.MediaPlayer;

/**
 * 具体命令：停止命令
 */
public class StopCommand implements com.example.command.Command {
    private final MediaPlayer player;

    public StopCommand(MediaPlayer player) {
        this.player = player;
    }

    @Override
    public void execute() {
        player.stop();
    }
}

